net.minecraft.src.customstuff.scripts
Class World

java.lang.Object
  extended by net.minecraft.src.customstuff.scripts.World

public class World
extends java.lang.Object


Field Summary
 net.minecraft.src.World world
           
 
Constructor Summary
World(net.minecraft.src.World world)
           
 
Method Summary
 void addToContainer(int i, int j, int k, int id, int count, int damage)
          Adds items to a container if there's space for them.
 void addToContainer(net.minecraft.src.customstuff.scripts.Position pos, int id, int count, int damage)
          Adds items to a container if there's space for them.
 void addToContainerSlot(int i, int j, int k, int slotId, int count)
          Adds items to a container slot if it isn't empty
 void addToContainerSlot(net.minecraft.src.customstuff.scripts.Position pos, int slotId, int count)
          Adds items to a container slot if it isn't empty
 void clearContainer(int i, int j, int k)
          Clears a container
 void clearContainer(net.minecraft.src.customstuff.scripts.Position pos)
          Clears a container
 void clearContainerSlot(int i, int j, int k, int slotId)
          Clears a container slot
 void clearContainerSlot(net.minecraft.src.customstuff.scripts.Position pos, int slotId)
          Clears a container slot
 void createExplosion(double i, double j, double k, float strength)
          Creates a explosion
 void createExplosion(net.minecraft.src.customstuff.scripts.Position pos, float strength)
          Creates a explosion
 void createThunderbolt(double i, double j, double k)
          Creates a thunderbolt
 void createThunderbolt(net.minecraft.src.customstuff.scripts.Position pos)
          Creates a thunderbolt
 void fillContainer(int i, int j, int k, int id, int damage)
          Fills a container.
 void fillContainer(net.minecraft.src.customstuff.scripts.Position pos, int id, int damage)
          Fills a container.
 void fillContainerSlot(int i, int j, int k, int slotId)
          Fills a container slot if it isn't empty
 void fillContainerSlot(net.minecraft.src.customstuff.scripts.Position pos, int slotId)
          Fills a container slot if it isn't empty
 java.lang.String getBiome(int i, int j, int k)
          Gets the biome
 java.lang.String getBiome(net.minecraft.src.customstuff.scripts.Position pos)
          Gets the biome
 int getBlockDamage(int i, int j, int k)
          Gets the block's damage value
 int getBlockDamage(net.minecraft.src.customstuff.scripts.Position pos)
          Gets the block's damage value
 int getBlockId(int i, int j, int k)
          Gets the block id
 int getBlockId(net.minecraft.src.customstuff.scripts.Position pos)
          Gets the block id
 int getBlockLightLevel(int i, int j, int k)
          Gets the light level
 int getBlockLightLevel(net.minecraft.src.customstuff.scripts.Position pos)
          Gets the light level
 int getContainerIntData(int i, int j, int k, int index)
          Gets the int data of a custom container
 int getContainerIntData(net.minecraft.src.customstuff.scripts.Position pos, int index)
          Gets the int data of a custom container
 int getContainerItemCount(int i, int j, int k, int id, int damage)
          Gets the count of a item in a container
 int getContainerItemCount(net.minecraft.src.customstuff.scripts.Position pos, int id, int damage)
          Gets the count of a item in a container
 int getContainerSlotCount(int i, int j, int k, int slotId)
          Gets the item's stack size in a slot of a container
 int getContainerSlotCount(net.minecraft.src.customstuff.scripts.Position pos, int slotId)
          Gets the item's stack size in a slot of a container
 int getContainerSlotDamage(int i, int j, int k, int slotId)
          Gets the item's damage value in a slot of a container
 int getContainerSlotDamage(net.minecraft.src.customstuff.scripts.Position pos, int slotId)
          Gets the item's damage value in a slot of a container
 int getContainerSlotId(int i, int j, int k, int slotId)
          Gets the item's id in a slot of a container
 int getContainerSlotId(net.minecraft.src.customstuff.scripts.Position pos, int slotId)
          Gets the item's id in a slot of a container
 java.lang.String getContainerStringData(int i, int j, int k, int index)
          Gets the string data of a custom container
 java.lang.String getContainerStringData(net.minecraft.src.customstuff.scripts.Position pos, int index)
          Gets the string data of a custom container
 void harvestBlock(int i, int j, int k)
          Harvests a block
 void harvestBlock(net.minecraft.src.customstuff.scripts.Position pos)
          Harvests a block
 void hoeBlock(int i, int j, int k)
          Hoes a block
 void hoeBlock(net.minecraft.src.customstuff.scripts.Position pos)
          Hoes a block
 boolean isFuelInContainerSlot(int i, int j, int k, int slot)
           
 boolean isFuelInContainerSlot(net.minecraft.src.customstuff.scripts.Position pos, int slot)
           
 void removeFromContainer(int i, int j, int k, int id, int count, int damage)
          Removes items from a container
 void removeFromContainer(net.minecraft.src.customstuff.scripts.Position pos, int id, int count, int damage)
          Removes items from a container
 void removeFromContainerSlot(int i, int j, int k, int slotId, int count)
          Removes items from a container slot
 void removeFromContainerSlot(net.minecraft.src.customstuff.scripts.Position pos, int slotId, int count)
          Removes items from a container slot
 void setBlockId(int i, int j, int k, int id)
          Sets the id of the block at the given coordinates
 void setBlockId(net.minecraft.src.customstuff.scripts.Position pos, int id)
          Sets the id of the block at the given position
 void setBlockIdAndMetadata(int i, int j, int k, int id, int metadata)
          Sets the id and damage value of a block
 void setBlockIdAndMetadata(net.minecraft.src.customstuff.scripts.Position pos, int id, int metadata)
          Sets the id and damage value of a block
 void setBlockMetadata(int i, int j, int k, int metadata)
          Sets the damage value of a block
 void setBlockMetadata(net.minecraft.src.customstuff.scripts.Position pos, int metadata)
          Sets the damage value of a block
 void setContainerIntData(int i, int j, int k, int index, int data)
          Sets the container int data of a custom container
 void setContainerIntData(net.minecraft.src.customstuff.scripts.Position pos, int index, int data)
          Sets the container int data of a custom container
 void setContainerSlot(int i, int j, int k, int slotId, int id, int count, int damage)
          Sets a container slot
 void setContainerSlot(net.minecraft.src.customstuff.scripts.Position pos, int slotId, int id, int count, int damage)
          Sets a container slot
 void setContainerStringData(int i, int j, int k, int index, java.lang.String data)
          Sets the container string data of a custom container
 void setContainerStringData(net.minecraft.src.customstuff.scripts.Position pos, int index, java.lang.String data)
          Sets the container string data of a custom container
 void setTime(int time)
          Sets the time
 void setWeather(int weather, int duration)
          Sets the weather
 void spawnItem(double i, double j, double k, int id, int count, int damage)
          Spawns an item
 void spawnItem(net.minecraft.src.customstuff.scripts.Position pos, int id, int count, int damage)
          Spawns an item
 void spawnMob(double i, double j, double k, java.lang.String name)
          Spawns a mob
 void spawnMob(net.minecraft.src.customstuff.scripts.Position pos, java.lang.String name)
          Spawns a mob
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

world

public net.minecraft.src.World world
Constructor Detail

World

public World(net.minecraft.src.World world)
Method Detail

setBlockId

public void setBlockId(net.minecraft.src.customstuff.scripts.Position pos,
                       int id)
Sets the id of the block at the given position

Parameters:
pos - The position
id - The id of the block

setBlockId

public void setBlockId(int i,
                       int j,
                       int k,
                       int id)
Sets the id of the block at the given coordinates

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
id - The id of the block

setBlockMetadata

public void setBlockMetadata(net.minecraft.src.customstuff.scripts.Position pos,
                             int metadata)
Sets the damage value of a block

Parameters:
pos - The position
metadata - The damage value of the block

setBlockMetadata

public void setBlockMetadata(int i,
                             int j,
                             int k,
                             int metadata)
Sets the damage value of a block

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
metadata - The damage value of the block

setBlockIdAndMetadata

public void setBlockIdAndMetadata(net.minecraft.src.customstuff.scripts.Position pos,
                                  int id,
                                  int metadata)
Sets the id and damage value of a block

Parameters:
pos - The position
id - The block's id
metadata - The block'S damage value

setBlockIdAndMetadata

public void setBlockIdAndMetadata(int i,
                                  int j,
                                  int k,
                                  int id,
                                  int metadata)
Sets the id and damage value of a block

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
id - The block's id
metadata - The block's damage value

harvestBlock

public void harvestBlock(net.minecraft.src.customstuff.scripts.Position pos)
Harvests a block

Parameters:
pos - The position

harvestBlock

public void harvestBlock(int i,
                         int j,
                         int k)
Harvests a block

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate

setTime

public void setTime(int time)
Sets the time

Parameters:
time - The time

createExplosion

public void createExplosion(net.minecraft.src.customstuff.scripts.Position pos,
                            float strength)
Creates a explosion

Parameters:
pos - The position
strength - The strength of the explosion

createExplosion

public void createExplosion(double i,
                            double j,
                            double k,
                            float strength)
Creates a explosion

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
strength - The strength of the explosion

createThunderbolt

public void createThunderbolt(net.minecraft.src.customstuff.scripts.Position pos)
Creates a thunderbolt

Parameters:
pos - The position

createThunderbolt

public void createThunderbolt(double i,
                              double j,
                              double k)
Creates a thunderbolt

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate

spawnMob

public void spawnMob(net.minecraft.src.customstuff.scripts.Position pos,
                     java.lang.String name)
Spawns a mob

Parameters:
pos - The position
name - The name of the mob

spawnMob

public void spawnMob(double i,
                     double j,
                     double k,
                     java.lang.String name)
Spawns a mob

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
name - The name of the mob

spawnItem

public void spawnItem(net.minecraft.src.customstuff.scripts.Position pos,
                      int id,
                      int count,
                      int damage)
Spawns an item

Parameters:
pos - The position
id - The item's id
count - The item's stack size
damage - The item's damage value

spawnItem

public void spawnItem(double i,
                      double j,
                      double k,
                      int id,
                      int count,
                      int damage)
Spawns an item

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
id - The item's id
count - The item's stack size
damage - The item's damage value

setWeather

public void setWeather(int weather,
                       int duration)
Sets the weather

Parameters:
weather - The id of the weather
duration - The duration

hoeBlock

public void hoeBlock(net.minecraft.src.customstuff.scripts.Position pos)
Hoes a block

Parameters:
pos - The position

hoeBlock

public void hoeBlock(int i,
                     int j,
                     int k)
Hoes a block

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate

fillContainer

public void fillContainer(net.minecraft.src.customstuff.scripts.Position pos,
                          int id,
                          int damage)
Fills a container. Existing items won't be replaced.

Parameters:
pos - The position
id - The item's id
damage - The item's damage value

fillContainer

public void fillContainer(int i,
                          int j,
                          int k,
                          int id,
                          int damage)
Fills a container. Existing items won't be replaced.

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
id - The item's id
damage - The item's damage value

clearContainer

public void clearContainer(net.minecraft.src.customstuff.scripts.Position pos)
Clears a container

Parameters:
pos - The position

clearContainer

public void clearContainer(int i,
                           int j,
                           int k)
Clears a container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate

addToContainer

public void addToContainer(net.minecraft.src.customstuff.scripts.Position pos,
                           int id,
                           int count,
                           int damage)
Adds items to a container if there's space for them.

Parameters:
pos - The position
id - The item's id
count - The item's stack size
damage - The item's damage value

addToContainer

public void addToContainer(int i,
                           int j,
                           int k,
                           int id,
                           int count,
                           int damage)
Adds items to a container if there's space for them.

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
id - The item's id
count - The item's stack size
damage - The item's damage value

removeFromContainer

public void removeFromContainer(net.minecraft.src.customstuff.scripts.Position pos,
                                int id,
                                int count,
                                int damage)
Removes items from a container

Parameters:
pos - The position
id - The item's id
count - The item's stack size
damage - The item's damage value

removeFromContainer

public void removeFromContainer(int i,
                                int j,
                                int k,
                                int id,
                                int count,
                                int damage)
Removes items from a container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
id - The item's id
count - The item's stack size
damage - The item's damage value

clearContainerSlot

public void clearContainerSlot(net.minecraft.src.customstuff.scripts.Position pos,
                               int slotId)
Clears a container slot

Parameters:
pos - The position
slotId - The slot's id

clearContainerSlot

public void clearContainerSlot(int i,
                               int j,
                               int k,
                               int slotId)
Clears a container slot

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
slotId - The slot's id

fillContainerSlot

public void fillContainerSlot(net.minecraft.src.customstuff.scripts.Position pos,
                              int slotId)
Fills a container slot if it isn't empty

Parameters:
pos - The position
slotId - The slot's id

fillContainerSlot

public void fillContainerSlot(int i,
                              int j,
                              int k,
                              int slotId)
Fills a container slot if it isn't empty

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
slotId - The slot's id

setContainerSlot

public void setContainerSlot(net.minecraft.src.customstuff.scripts.Position pos,
                             int slotId,
                             int id,
                             int count,
                             int damage)
Sets a container slot

Parameters:
pos - The position
slotId - The slot's id
id - The item's id
count - The item's stack size
damage - The item's damage value

setContainerSlot

public void setContainerSlot(int i,
                             int j,
                             int k,
                             int slotId,
                             int id,
                             int count,
                             int damage)
Sets a container slot

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
slotId - The slot's id
id - The item's id
count - The item's stack size
damage - The item's damage value

removeFromContainerSlot

public void removeFromContainerSlot(net.minecraft.src.customstuff.scripts.Position pos,
                                    int slotId,
                                    int count)
Removes items from a container slot

Parameters:
pos - The position
slotId - The slot's id
count - The count of items to remove

removeFromContainerSlot

public void removeFromContainerSlot(int i,
                                    int j,
                                    int k,
                                    int slotId,
                                    int count)
Removes items from a container slot

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
slotId - The slot's id
count - The count of items to remove

addToContainerSlot

public void addToContainerSlot(net.minecraft.src.customstuff.scripts.Position pos,
                               int slotId,
                               int count)
Adds items to a container slot if it isn't empty

Parameters:
pos - The position
slotId - The slot's id
count - The count to add

addToContainerSlot

public void addToContainerSlot(int i,
                               int j,
                               int k,
                               int slotId,
                               int count)
Adds items to a container slot if it isn't empty

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
slotId - The slot's id
count - The count to add

setContainerIntData

public void setContainerIntData(net.minecraft.src.customstuff.scripts.Position pos,
                                int index,
                                int data)
Sets the container int data of a custom container

Parameters:
pos - The position
index - The index (0 to 15) to set
data - The value

setContainerIntData

public void setContainerIntData(int i,
                                int j,
                                int k,
                                int index,
                                int data)
Sets the container int data of a custom container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
index - The index (0 to 15) to set
data - The value

setContainerStringData

public void setContainerStringData(net.minecraft.src.customstuff.scripts.Position pos,
                                   int index,
                                   java.lang.String data)
Sets the container string data of a custom container

Parameters:
pos - The position
index - The index (0 to 15) to set
data - The value

setContainerStringData

public void setContainerStringData(int i,
                                   int j,
                                   int k,
                                   int index,
                                   java.lang.String data)
Sets the container string data of a custom container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
index - The index (0 to 15) to set
data - The value

getBlockId

public int getBlockId(net.minecraft.src.customstuff.scripts.Position pos)
Gets the block id

Parameters:
pos - The position
Returns:
The block's id

getBlockId

public int getBlockId(int i,
                      int j,
                      int k)
Gets the block id

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
Returns:
The block's id

getBlockDamage

public int getBlockDamage(net.minecraft.src.customstuff.scripts.Position pos)
Gets the block's damage value

Parameters:
pos - The position
Returns:
The block's damage value

getBlockDamage

public int getBlockDamage(int i,
                          int j,
                          int k)
Gets the block's damage value

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
Returns:
The block's damage value

getContainerSlotId

public int getContainerSlotId(net.minecraft.src.customstuff.scripts.Position pos,
                              int slotId)
Gets the item's id in a slot of a container

Parameters:
pos - The position
slotId - The slot's id
Returns:
The item's id or -1 if it is empty

getContainerSlotId

public int getContainerSlotId(int i,
                              int j,
                              int k,
                              int slotId)
Gets the item's id in a slot of a container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
slotId -
Returns:
The item's id or -1 if it is empty

getContainerSlotDamage

public int getContainerSlotDamage(net.minecraft.src.customstuff.scripts.Position pos,
                                  int slotId)
Gets the item's damage value in a slot of a container

Parameters:
pos - The position
slotId - The slot's id
Returns:
The item's damage value or -1 if it is empty

getContainerSlotDamage

public int getContainerSlotDamage(int i,
                                  int j,
                                  int k,
                                  int slotId)
Gets the item's damage value in a slot of a container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
slotId - The slot's id
Returns:
The item's damage value or -1 if it is empty

getContainerSlotCount

public int getContainerSlotCount(net.minecraft.src.customstuff.scripts.Position pos,
                                 int slotId)
Gets the item's stack size in a slot of a container

Parameters:
pos - The position
slotId - The slot's id
Returns:
The item's stack size or -1 if it is empty

getContainerSlotCount

public int getContainerSlotCount(int i,
                                 int j,
                                 int k,
                                 int slotId)
Gets the item's stack size in a slot of a container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
slotId - slotId The slot's id
Returns:
The item's stack size or -1 if it is empty

getContainerItemCount

public int getContainerItemCount(net.minecraft.src.customstuff.scripts.Position pos,
                                 int id,
                                 int damage)
Gets the count of a item in a container

Parameters:
pos - The position
id - The item's id
damage - The item's damage value
Returns:
The count of the item

getContainerItemCount

public int getContainerItemCount(int i,
                                 int j,
                                 int k,
                                 int id,
                                 int damage)
Gets the count of a item in a container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
id - The item's id
damage - The item's damage value
Returns:
The count of the item

isFuelInContainerSlot

public boolean isFuelInContainerSlot(net.minecraft.src.customstuff.scripts.Position pos,
                                     int slot)
Parameters:
pos - The position
slot - The slot's id
Returns:
true if the item in the slot is fuel false otherwise

isFuelInContainerSlot

public boolean isFuelInContainerSlot(int i,
                                     int j,
                                     int k,
                                     int slot)
Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
slot - The slot's id
Returns:
true if the item in the slot is fuel false otherwise

getBiome

public java.lang.String getBiome(net.minecraft.src.customstuff.scripts.Position pos)
Gets the biome

Parameters:
pos - The position
Returns:
The name of the biome

getBiome

public java.lang.String getBiome(int i,
                                 int j,
                                 int k)
Gets the biome

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
Returns:
The name of the biome

getContainerIntData

public int getContainerIntData(net.minecraft.src.customstuff.scripts.Position pos,
                               int index)
Gets the int data of a custom container

Parameters:
pos - The position
index - The index (0 to 15)
Returns:
The value at the index

getContainerIntData

public int getContainerIntData(int i,
                               int j,
                               int k,
                               int index)
Gets the int data of a custom container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
index -
Returns:
The value at the index

getContainerStringData

public java.lang.String getContainerStringData(net.minecraft.src.customstuff.scripts.Position pos,
                                               int index)
Gets the string data of a custom container

Parameters:
pos - The position
index - The index (0 to 15)
Returns:
The value at the index

getContainerStringData

public java.lang.String getContainerStringData(int i,
                                               int j,
                                               int k,
                                               int index)
Gets the string data of a custom container

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
index -
Returns:
The value at the index

getBlockLightLevel

public int getBlockLightLevel(net.minecraft.src.customstuff.scripts.Position pos)
Gets the light level

Parameters:
pos - The position
Returns:
The light level

getBlockLightLevel

public int getBlockLightLevel(int i,
                              int j,
                              int k)
Gets the light level

Parameters:
i - The x coordinate
j - The y coordinate
k - The z coordinate
Returns:
The light level